home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Games / Xconq 7.0d16 / Xconq 7.0d16 src / src / skelconq.c < prev    next >
Encoding:
Text File  |  1993-12-20  |  21.5 KB  |  50 lines  |  [TEXT/MPS ]

  1. al errors encountered during game setup, exiting\n");
  2.     exit(1);
  3. }
  4.  
  5. /* A warning just gets displayed, no other action is taken. */
  6.  
  7. init_warning(str, a1, a2, a3, a4, a5, a6)
  8. char *str;
  9. long a1, a2, a3, a4, a5, a6;
  10. {
  11.     if (linemiddle) printf("\n");
  12.     fprintf(stderr, "Warning: ");
  13.     fprintf(stderr, str, a1, a2, a3, a4, a5, a6);
  14.     fprintf(stderr, ".\n");
  15.     fflush(stderr);
  16. }
  17.  
  18. /* A run error is fatal. */
  19.  
  20. run_error(str, a1, a2, a3, a4, a5, a6)
  21. char *str;
  22. long a1, a2, a3, a4, a5, a6;
  23. {
  24.     if (linemiddle) printf("\n");
  25.     printf("\nError: ");
  26.     printf(str, a1, a2, a3, a4, a5, a6);
  27.     printf("!\n");
  28.     exit(1);
  29. }
  30.  
  31. /* Runtime warnings are for when it's important to bug the players,
  32.    usually a problem with Xconq or a period. */
  33.  
  34. run_warning(str, a1, a2, a3, a4, a5, a6)
  35. char *str;
  36. long a1, a2, a3, a4, a5, a6;
  37. {
  38.     if (linemiddle) printf("\n");
  39.     printf("\nWarning: ");
  40.     printf(str, a1, a2, a3, a4, a5, a6);
  41.     printf("!\n");
  42.     fflush(stdout);
  43. }
  44.  
  45. printlisp(obj)
  46. Obj *obj;
  47. {
  48.     fprintlisp(stdout, obj);
  49. }
  50.